<template>
  <div>
    <input
      type="text"
      v-model='name'
    >
    {{value}}
  </div>
</template>
<script>
// @ is an alias to /src
export default {
  name: "my-input",
  props: ["value"],

  computed: {
    name: {
      get() {
        return this.value;
      },
      set(val) {
        this.$emit("input", val);
      },
    },
  },
};
</script>
<style lang="less">
</style>